function x = genDist(coords)
% Function that generates a distance matrix from a coordinate matrix

number = size(coords);
number = number(1);
coords = coords';

for i=1:number;
    x(i,:) = sqrt((coords(1,:)-coords(1,i)).^2+(coords(2,:)-coords(2,i)).^2);
end

end

